package com.codexsoft.jpamodel;

/**
 * Created by IntelliJ IDEA.
 * User: lotos
 * Date: 10.08.11
 * Time: 13:20
 * To change this template use File | Settings | File Templates.
 */

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public final class EMF {
    private static final EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory("transactions-optional");

    private EMF() {}

    public static EntityManagerFactory get() {
        return emfInstance;
    }
}
